/*--------------------------------*- C++ -*----------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  dev
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
FoamFile
{
    format      ascii;
    class       dictionary;
    location    "system";
    object      snappyHexMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#includeEtc "caseDicts/mesh/generation/snappyHexMeshDict.cfg"

castellatedMesh on;
snap            on;
addLayers       off;

geometry
{
    sloshingCylinder
    {
        type closedTriSurface;
        file "sloshingCylinder.obj";
    }
};

castellatedMeshControls
{
    refinementSurfaces
    {
        sloshingCylinder
        {
            level (1 1);
            patchInfo { type wall; }
        }
    }

    refinementRegions
    {
        sloshingCylinder
        {
            mode    inside;
            level   1;
        }
    }

    insidePoint (1e-5 1e-5 1e-5);
}

snapControls
{
    explicitFeatureSnap    false;
    implicitFeatureSnap    false;
}

addLayersControls
{
    layers
    {
    }

    relativeSizes       true;
    expansionRatio      1.2;
    finalLayerThickness 0.5;
    minThickness        1e-3;
}

writeFlags
(
);

mergeTolerance 1e-6;

// ************************************************************************* //
